Learn how to customize your search results based on whether your user is on a mobile or desktop device.
mobile
context when users search from mobile devices. A context is a string passed as a search parameter to InstantSearch or an Algolia API client.mobile
context.analyticsTags
help you group search analytics into different segments.release_date
attribute, in Unix timestamp format, this is useful for identifying newly released movies.
searchParameters
setting of your InstantSearch instance during initialization.
search
your index.
save-rule
method to create a context-dependent rule.
For example, to promote movies released after January 1, 2020, for mobile users:
release_date
attribute.
For example, to show all movies released since 2020 (1577836800
is the Unix timestamp for January 1, 2020),
enter: { "filters": "release_date >= 1577836800" }